{{#* inline 'hasViewMessage' viewMsgGroupDetails pos}}
noResult
{{~#each viewMsgGroupDetails as | viewMsgGroupDetail |}}{{#or (and (eq pos 'TOP') (or (eq viewMsgGroupDetail.position 'TOP') (eq viewMsgGroupDetail.position 'POPUP'))) (and (eq pos 'BODY') (eq viewMsgGroupDetail.position 'BODY')) (and (eq pos 'BOTTOM') (eq viewMsgGroupDetail.position 'BOTTOM'))}}hasResult{{/or}}{{/each~}}
{{/inline}}
{{#if page.psAppViewMsgGroup}}
{{#neq (hasViewMessage viewMsgGroupDetails=page.psAppViewMsgGroup.psAppViewMsgGroupDetails pos='TOP') 'noResult'}}
<template #topMessage>
    <div class="view-top-message">
        <AppAlert
            position="TOP"
            showStyle="{{page.psAppViewMsgGroup.topStyle}}"
            infoGroup="{{page.psAppViewMsgGroup.codeName}}"
            viewName="{{lowerCase page.codeName}}"
            :viewMsgs="store.viewMsgs"
            :context="store.context"
            :viewParams="store.viewParams"                    
        ></AppAlert>
    </div>
</template>
{{/neq}}  
{{#neq (hasViewMessage viewMsgGroupDetails=page.psAppViewMsgGroup.psAppViewMsgGroupDetails pos='BODY') 'noResult'}}
<template #bodyMessage>
    <div class="view-body-message">
        <AppAlert
            position="BODY"
            showStyle="{{page.psAppViewMsgGroup.bodyStyle}}"
            infoGroup="{{page.psAppViewMsgGroup.codeName}}"
            viewName="{{lowerCase page.codeName}}"
            :viewMsgs="store.viewMsgs"            
            :context="store.context"
            :viewParams="store.viewParams"
        ></AppAlert>                
    </div>
</template>
{{/neq}}  
{{#neq (hasViewMessage viewMsgGroupDetails=page.psAppViewMsgGroup.psAppViewMsgGroupDetails pos='BOTTOM') 'noResult'}}
<template #bottomMessage>
    <div class="view-bottom-message">
        <AppAlert
            position="BOTTOM"
            showStyle="{{page.psAppViewMsgGroup.bottomStyle}}"
            infoGroup="{{page.psAppViewMsgGroup.codeName}}"
            viewName="{{lowerCase page.codeName}}"
            :viewMsgs="store.viewMsgs"            
            :context="store.context"
            :viewParams="store.viewParams"                    
        ></AppAlert>                  
    </div>
</template> 
{{/neq}}
{{/if}}